<template>
	<slot v-if="catchInject" :error="catchInject"></slot>
</template>

<script lang="ts" setup>
import { inject, computed } from "vue";
import { promiseInjectionKey } from "../help";
const promise = inject(promiseInjectionKey);

const catchInject = computed(() => promise?.error);
</script>
